<div class="panel panel-default panel-intro">
    <div class="panel-heading">
        <div class="panel-lead"><em>{$user.nickname}</em> 的消费记录</div>
        <div class="panel-lead">总收支：<span class="{$total_amount >= 0 ? 'text-success' : 'text-danger'}">{$total_amount}</span></div>
        {if $user.is_teacher == 1}
        <div class="panel-lead">当前余额：<span class="text-primary">{$user.money}</span></div>
        {/if}
    </div>
    
    <div class="panel-body">
        <div id="myTabContent" class="tab-content">
            <div class="tab-pane fade active in" id="one">
                <div class="widget-body no-padding">
                    <div id="toolbar" class="toolbar">
                        {:build_toolbar('refresh')}
                    </div>
                    <table id="table" class="table table-striped table-bordered table-hover table-nowrap"
                           data-operate-edit="{:$auth->check('user/user/edit')}" 
                           data-operate-del="{:$auth->check('user/user/del')}"
                           width="100%">
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>